package com.example.demo02.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.example.demo02.dto.HttpPostBaseObject;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class Person extends HttpPostBaseObject {
    String name;
    Integer age;
    Shop shop;
    List<Student> students;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    Date day;
}
